package com.woniuxy06;


class FatherClass{
    public void test(){
        System.out.println("FatherClass test");
    }
}
class SonClass extends FatherClass{
    public void test(){
        System.out.println("SonClass test");
    }
}

public class Test01 {
    public static void main(String[] args) {
        FatherClass fc=new FatherClass();
        SonClass sc=new SonClass();
        fc=sc;
        fc.test();
    }
}
